package com.poi.action;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.StrutsStatics;

import javax.servlet.http.HttpServletRequest;

public class selecttable extends ActionSupport{

	public static String ctable=null;
	public static String tablename=null;
	HttpServletRequest request=(HttpServletRequest)ActionContext.getContext().get(StrutsStatics.HTTP_REQUEST);


	public String ct(){
		ctable="CatchTools";
		tablename="网具监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}


	public String f(){
		ctable="Fishes";
		tablename="鱼样本监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}
	public String fe(){
		ctable="FishEggs";
		tablename="卵样本监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}
	public String s(){
		ctable="Sediment";
		tablename="沉积物监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}

	public String dzs(){
		ctable="DominantZooplankton";
		tablename="浮游动物监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}

	public String dps(){
		ctable="DominantPhytoplankton";
		tablename="浮游植物监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}

	public String dbs(){
		ctable="DominantBenthos";
		tablename="底栖生物监测表";
		request.getSession().setAttribute("ctable", ctable);
		request.getSession().setAttribute("tablename", tablename);
		request.getSession().setAttribute("prompt", null);
		request.getSession().setAttribute("massage", null);
		return SUCCESS;
	}
	
	
}
